package org.an.proj.contacts.util;

/**
 * Created by an on 2016/12/26.<br/>
 */

public class ConstantUtil {
  public static final int RESULT_OK = 0;
  public static final int RESULT_NULL = -1;
  public static final int ERRNO_SMS_AUTHOR = 19001;

  public static final String INFO = "info";
  public static final String URL = "url";

  public interface IErrorCode {
    // token验证失败
    int errorCodeUnLogin = 91001;

    // 其他设备登录，踢出
    int errorCodeTokenFail = 39001;

    // 登录已过期
    int errorCodeTokenExpire = 91004;

    // 版本过期,有新版本(小流量)
    int errorCodeNewVersion = 39002;

    // 密码已经过期，请重置
    int passwordAlreadyExpiredCode = 91008;

    //系统内部错误[NewAdd]
    int error_code = 90001;
    //密码不正确 [NewAdd]
    int error_wrong_password = 91002;
    //用户不存在 [NewAdd]
    int error_noUser = 91003;

    // 其他设备登录，踢出
    //int errorCodeTokenFail = 31102;

    //参数缺失或类型错误 [NewAdd]
    int error_param = 92001;
    //user-agent错误
    int error_user_agent = 92002;
  }
}
